package org.lanqiao.tjut.service.impl;

import java.util.List;

import org.lanqiao.tjut.dao.IUserDao;
import org.lanqiao.tjut.orm.UsersEntity;
import org.lanqiao.tjut.service.IUserService;

public class UserServiceImpl implements IUserService {

	// 创建一个dao层的实例对象(Spring 依赖注入)
	private IUserDao userD;

	@Override
	public List<UsersEntity> selectUsersInfo4Login(UsersEntity userE) {
		// 调用dao层进行登录验证
		List<UsersEntity> lstUsers = userD.selectUsersInfo4Login(userE);
		return lstUsers;
	}

	public IUserDao getUserD() {
		return userD;
	}

	public void setUserD(IUserDao userD) {
		this.userD = userD;
	}
}
